package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Subject implements Serializable {
    private String sjno;

    private String bno;

    private String sjname;

    private String sjcontent;

    private String sjscore;

    private Integer sjstate;

    private String sjanswer;

    private static final long serialVersionUID = 1L;

    public String getSjno() {
        return sjno;
    }

    public void setSjno(String sjno) {
        this.sjno = sjno;
    }

    public String getBno() {
        return bno;
    }

    public void setBno(String bno) {
        this.bno = bno;
    }

    public String getSjname() {
        return sjname;
    }

    public void setSjname(String sjname) {
        this.sjname = sjname;
    }

    public String getSjcontent() {
        return sjcontent;
    }

    public void setSjcontent(String sjcontent) {
        this.sjcontent = sjcontent;
    }

    public String getSjscore() {
        return sjscore;
    }

    public void setSjscore(String sjscore) {
        this.sjscore = sjscore;
    }

    public Integer getSjstate() {
        return sjstate;
    }

    public void setSjstate(Integer sjstate) {
        this.sjstate = sjstate;
    }

    public String getSjanswer() {
        return sjanswer;
    }

    public void setSjanswer(String sjanswer) {
        this.sjanswer = sjanswer;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Subject other = (Subject) that;
        return (this.getSjno() == null ? other.getSjno() == null : this.getSjno().equals(other.getSjno()))
            && (this.getBno() == null ? other.getBno() == null : this.getBno().equals(other.getBno()))
            && (this.getSjname() == null ? other.getSjname() == null : this.getSjname().equals(other.getSjname()))
            && (this.getSjcontent() == null ? other.getSjcontent() == null : this.getSjcontent().equals(other.getSjcontent()))
            && (this.getSjscore() == null ? other.getSjscore() == null : this.getSjscore().equals(other.getSjscore()))
            && (this.getSjstate() == null ? other.getSjstate() == null : this.getSjstate().equals(other.getSjstate()))
            && (this.getSjanswer() == null ? other.getSjanswer() == null : this.getSjanswer().equals(other.getSjanswer()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSjno() == null) ? 0 : getSjno().hashCode());
        result = prime * result + ((getBno() == null) ? 0 : getBno().hashCode());
        result = prime * result + ((getSjname() == null) ? 0 : getSjname().hashCode());
        result = prime * result + ((getSjcontent() == null) ? 0 : getSjcontent().hashCode());
        result = prime * result + ((getSjscore() == null) ? 0 : getSjscore().hashCode());
        result = prime * result + ((getSjstate() == null) ? 0 : getSjstate().hashCode());
        result = prime * result + ((getSjanswer() == null) ? 0 : getSjanswer().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sjno=").append(sjno);
        sb.append(", bno=").append(bno);
        sb.append(", sjname=").append(sjname);
        sb.append(", sjcontent=").append(sjcontent);
        sb.append(", sjscore=").append(sjscore);
        sb.append(", sjstate=").append(sjstate);
        sb.append(", sjanswer=").append(sjanswer);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}